﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StatePattern
{
    class Work
    {
        public Work()
        {
            workStatus = new StatusOne();
        }
        private Status workStatus;

        public bool Done = false;

        public int tickte = 0;

        public void SetStatus(Status status)
        {
            this.workStatus = status;
        }


        public void DoWork()
        {
            workStatus.DoWork(this);
        }
    }
}
